package work2.phone;
/**
*
* 手机卡类 特征：卡类型、卡号、用户名、密码、账户余额、通话时长(分钟)、上网流量 行为：显示（卡号 + 用户名 + 当前余额）
 *
* */
public class PhoneCard {
    public static final int TYPE_BIG =1;
    public static final int TYPE_SMALL =2;
    public static final int TYPE_VERY_SMALL =3;
    private int cardType ;
    private int cardNum;
    private String userName;
    private String password;
    private String balance;
    private int callTime;

    public PhoneCard(int cardType, int cardNum, String userName, String password, String balance, int callTime) {
        this.cardType = cardType;
        this.cardNum = cardNum;
        this.userName = userName;
        this.password = password;
        this.balance = balance;
        this.callTime = callTime;
    }

    public int getCardType() {
        return cardType;
    }

    public void setCardType(int cardType) {
        this.cardType = cardType;
    }

    public int getCardNum() {
        return cardNum;
    }

    public void setCardNum(int cardNum) {
        this.cardNum = cardNum;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }

    public void show(){
        System.out.println("卡号：" + cardNum + "  用户名：" + userName + "  当前余额:" + balance);
    }

}
